#include "StdAfx.h"
#include "KeyEvent.h"


/** Get the key pressed */
int KeyEvent::GetKey() const
{
    return m_Key;
}

/** Get the string associated with this key code */
std::string KeyEvent::GetKeyText( int key ) const
{
    return m_keyConverter.ToString( key );
}

/** Get the keycode from a string */
int KeyEvent::GetKeyCode( const std::string &str ) const
{
    return m_keyConverter.ToKeyCode( str );
}

/** Get the shift value of the key code */
char    KeyEvent::GetShiftKey( int key ) const
{
    return m_keyConverter.GetShiftValue( key );
}

/** Get Modifier (e.i. Shift Key/Alt Key ) */
int     KeyEvent::GetModifier() const
{
    return m_modifier;
}


KeyEvent::~KeyEvent(void)
{
}